package com.ysx.teacher.day20210928;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

public class Ch05 {

    public static void main(String[] args) throws Exception {

        File file = new File("C:/Download/xy.txt");

        // 输入 读文件数据   想知道xy.txt文件中放了啥？
        InputStream is= new FileInputStream(file);

        //把这个手机号码读出来呢? 13267128038

        // 1个字符1个字符读
        // 转化ascii码 ?
        for(int index=1;index<=11;index++){
            int ascii = is.read();
            System.out.println(ascii);
            char x =(char) ascii;
            System.out.print(x);
        }

    }
}
